package com.night.student.mapper;

import com.night.common.entity.student.Score;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.Wang
 * @ClassName: ScoreMapper
 * @Description: //TODO
 * @date: 2022/10/19-20:23
 */
public interface ScoreMapper {
    //根据条件查成绩,pass赋值为通过，fail不通过，term分学期
    List<Score> getScoreByCondition(Score score);
    //录入单个学生成绩
    void insert(Score score);
    //批量录入
    void adds(@Param("scores") List<Score> scores);
    //根据记录id录入选修成绩，实则为更改
    void addSelectScore(Score score);
}
